package com.qianyu.project.service.smj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.mapper.provider.smj.smjRealnameDao;
import com.qianyu.project.utils.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class smjRealnameServiceImpl implements smjRealnameService {
    @Autowired
    private smjRealnameDao rd;

    @Override//查询工种信息
    public List<Map<String, Object>> getprofessions() {
        return rd.getprofessions();
    }

    @Override//添加实名制信息
    public void AddRealname(String name, String sfz, String profession, String p_id, String commit, String apply_date, String attach_ids, String attach_ids2) {
        rd.AddRealname( name, sfz, profession, p_id, commit, apply_date, attach_ids, attach_ids2);
    }

    @Override//获取劳务实名制列表
    public IPage<Map<String, Object>> ListFragmentary(Map<String, String> params) {
        IPage<Map<String, Object>> page= PageUtil.createPage(params);
        return rd.ListFragmentary(page,params);
    }
}
